package jp.co.sn.mml.pojo.tsstkyz;


public class TsstkyzId implements java.io.Serializable { 

	//推定菌コード
	private String stkCd;
	//薬剤コード
	private String yzCd;

	/** default constructor */
	public TsstkyzId(){

	}

	/** full constructor */
	public TsstkyzId(String stkCd,String yzCd){
		this.stkCd = stkCd;
		this.yzCd = yzCd;
	}

	//Property accessors
	public String getStkCd(){
		return this.stkCd;
	}

	public void setStkCd(String stkCd){
		this.stkCd=stkCd;
	}

	public String getYzCd(){
		return this.yzCd;
	}

	public void setYzCd(String yzCd){
		this.yzCd=yzCd;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TsstkyzId))
			return false;

		TsstkyzId castOther = (TsstkyzId) other;

		return ((this.getStkCd() ==  castOther.getStkCd())
				||(this.getStkCd()!=null && castOther.getStkCd() !=null 
					&& castOther.getStkCd() !=null 
					&& this.getStkCd().equals(castOther.getStkCd())))
			&& ((this.getYzCd() ==  castOther.getYzCd())
				||(this.getYzCd()!=null && castOther.getYzCd() !=null 
					&& castOther.getYzCd() !=null 
					&& this.getYzCd().equals(castOther.getYzCd())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getStkCd() == null ? 0 : this.getStkCd().hashCode());
		result = 37 * result
				+ (getYzCd() == null ? 0 : this.getYzCd().hashCode());
		return result;
	}

}